class Ingresso < ActiveRecord::Base
  set_table_name 'ingresso'

  belongs_to :ingressogrupo, :foreign_key => "grupoingresso"
  
  validates_presence_of :id
  validates_presence_of :nome
  validates_presence_of :grupoingresso
  validates_uniqueness_of :id
end
